
const RouteView = {
  name: 'RouteView',
  render: h => h('router-view')
}

export default {
  path: '/system',
  name: 'system',
  redirect: '/system/autoform',
  component: RouteView,
  meta: { title: '系统管理', keepAlive: true, icon: 'setting' },
  children: [
    {
      path: '/system/generator',
      name: 'system-generator',
      component: () => import('@/views/system/generator/Index'),
      meta: { title: '代码生成', keepAlive: true }
    },
    {
      path: '/system/config',
      name: 'system-config',
      component: () => import('@/views/system/config/Index'),
      meta: { title: '配置管理', keepAlive: true }
    },
    {
      path: '/system/schedule',
      name: 'system-schedule',
      component: () => import('@/views/system/schedule/Index'),
      meta: { title: '任务管理', keepAlive: true }
    },
    {
      path: '/system/log',
      name: 'system-log',
      component: () => import('@/views/system/log/Index'),
      meta: { title: '日志管理', keepAlive: true }
    },
    {
      path: '/system/dictionary',
      name: 'system-dictionary',
      component: () => import('@/views/system/dictionary/Index'),
      meta: { title: '字典管理', keepAlive: true }
    },
    {
      path: '/system/attach',
      name: 'system-attach',
      hidden: true,
      component: () => import('@/views/system/attach/Index'),
      meta: { title: '附件管理', keepAlive: true }
    },
    {
      path: '/system/datasource',
      name: 'system-datasource',
      component: () => import('@/views/system/datasource/Index'),
      meta: { title: '数据源管理', keepAlive: true }
    },
    {
      path: '/system/org',
      name: 'system-org',
      component: () => import('@/views/system/org/Index'),
      meta: { title: '组织管理', keepAlive: true }
    },
    {
      path: '/system/user',
      name: 'system-user',
      component: () => import('@/views/system/user/Index'),
      meta: { title: '用户管理', keepAlive: true }
    },
    {
      path: '/system/menu',
      name: 'system-menu',
      component: () => import('@/views/system/menu/Index'),
      meta: { title: '菜单管理', keepAlive: true }
    },
    {
      path: '/system/msg',
      name: 'system-msg',
      hidden: true,
      component: () => import('@/views/system/msg/Index'),
      meta: { title: '消息中心', keepAlive: true }
    },
    {
      path: '/system/invoice',
      name: 'system-invoice',
      hidden: true,
      component: () => import('@/views/system/invoice/Index'),
      meta: { title: '发票管理', keepAlive: true }
    }
  ]
}
